package ru.osu.acm.system;

import java.io.InputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

/**
 * User: aleksey
 * Date: Aug 12, 2009
 * Time: 4:54:49 PM
 */
public class ProcessStreamReader implements Runnable {
    private InputStream stream;

    public ProcessStreamReader(InputStream stream) {
        this.stream = stream;
    }

    public void run() {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(stream));
            String line = br.readLine();
            while (line != null) {
                line = br.readLine();
            }
            br.close();
        }
        catch (IOException e) {
            e.printStackTrace();
        }
    }
}
